home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / tip / verb.tip < prev    next >
Text File  |  1993-09-15  |  1KB  |  45 lines

  1. % This macro source file is from the four volume series
  2. % "TeX in Practice" by Stephan von Bechtolsheim, published
  3. % 1993 by Springer-Verlag, New York.
  4. % Copyright 1993 Stephan von Bechtolsheim.
  5. % No warranty or liability is assumed.
  6. % This macro may be copied freely if no fees other than
  7. % media cost or shipping charges are charged and as long
  8. % as this copyright and the following source code itself
  9. % is not changed. Please see the series for further information.
  10. %
  11. % Version: 1.0
  12. % Date: May 1, 1993
  13. %
  14. %
  15. % This source code is documented in 18.3.4, p. III-35.
  16. % Original source in file "tokens1.TEX", starting line 2077.
  17. \wlog{L: "verb.tip" ["tokens1.TEX," l. 2077, p. III-35]}%
  18. % This file DOES belong to format "texip."
  19. \InputD{verb-bas.tip}
  20. \InputD{nctest.tip}
  21. \catcode`\@ = 11
  22. {\catcode`\ = \active
  23. \gdef\@InitActiveSpace{\edef {\VerbControlSpace}}}
  24. \newif\if@VerbSpaceControl
  25. \def\Verb{%
  26.     \NextCharTest{*}{\@VerbSpaceControltrue \@VerbA}%
  27.                     {\@VerbSpaceControlfalse\@VerbA}%
  28. }
  29. \def\@VerbA #1{%
  30.     \bgroup
  31.     \tt
  32.     \MkOthers
  33.     \if@VerbSpaceControl
  34.     \else
  35.         \catcode`\ = \active
  36.         \@InitActiveSpace
  37.     \fi
  38.     \def\@VerbTemp ##1#1{%
  39.         ##1%        % Simply print the argument.
  40.         \egroup     % Undo font change and category code changes.
  41.     }% 
  42.     \@VerbTemp
  43. }
  44. \catcode`\@ = 12
  45.